package com.bw.gmallapi.controller;

import com.bw.gmallapi.service.GmallService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: gmall_2210B
 * @BelongsPackage: com.bw.gmallapi.controller
 * @Author: weiliujia
 * @CreateTime: 2025-06-27
 * @Description: TODO
 * @Version: 1.0
 */
@RestController
@RequestMapping("/gmallapi/test")
public class TestController {

    @Autowired // TODO: 2025/6/27 自动注入/8
    private GmallService gmallService;

    @GetMapping("/test")
    public String getTestData(){
        return "123456";
    }

    @GetMapping("/gmv")
    public Double getGmv(){
        return gmallService.getGmv();
    }
}
